package com.tianda.his.modules.erp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tianda.his.modules.erp.dto.MedicinesDto;
import com.tianda.his.modules.erp.dto.PruducerDto;
import com.tianda.his.modules.erp.entity.StockMedicines;
import com.tianda.his.modules.erp.service.StockMedicinesService;
import com.tianda.his.modules.erp.mapper.StockMedicinesMapper;
import org.springframework.stereotype.Service;

/**
* @author jinken
* @description 针对表【stock_medicines(药品信息表)】的数据库操作Service实现
* @createDate 2025-09-17 09:07:29
*/
@Service
public class StockMedicinesServiceImpl extends ServiceImpl<StockMedicinesMapper, StockMedicines>
    implements StockMedicinesService{

    @Override
    public Page<StockMedicines> listMedicinesForPage(MedicinesDto medicinesDto) {
        LambdaQueryWrapper<StockMedicines> wrapper = new LambdaQueryWrapper<>();

        Page<StockMedicines> page = new Page<>(medicinesDto.getPageNum(), medicinesDto.getPageSize());

        this.page(page, wrapper);
        return page;
    }
}




